What is Media Over Quic

From RidgeRun Developer Wiki

Follow Us On Twitter LinkedIn Email Share this page









Introducing Media over QUIC

Media over QUIC (MoQ) is a protocol designed for delivering live media content over the Internet using the QUIC transport protocol. It combines the scalability of modern content distribution networks with the low-latency and reliability required for real-time media applications.

Early background, motivation, and problem statements around Media over QUIC have been widely discussed by Cloudflare in their Media over QUIC article.

MoQ is designed from the ground up to support:

  • Low-latency media delivery
  • Real-time communication
  • Large-scale fan-out distribution

Reference implementations of MoQ are written in Rust and TypeScript, and the protocol is designed to scale across a wide range of real-time media use cases, including:

  • Live streaming
  • Cloud and online gaming
  • Media conferencing and interactive applications

Design Goals

Media over QUIC addresses several long-standing challenges in Internet media delivery.

No Head-of-Line Blocking

Traditional TCP-based protocols such as RTMP suffer from head-of-line blocking, where the loss of a single packet can stall the entire stream.

MoQ inherits QUIC’s stream-based transport model:

  • Media objects are delivered over independent QUIC streams.
  • Packet loss affecting one stream does not block others.
  • This eliminates stuttering and freezing commonly observed in legacy streaming protocols.

Connection Migration Without Rebuffering

MoQ benefits directly from QUIC’s support for connection migration:

  • Network changes (e.g., switching from Wi-Fi to cellular) do not require reconnecting.
  • Media playback continues without rebuffering or renegotiation.
  • This is particularly important for mobile and wireless devices.

Fast Connection Establishment

QUIC enables extremely fast connection setup:

  • MoQ sessions typically require only one round trip to establish.
  • Viewers can start receiving media almost immediately.
  • This allows near-instant playback for live streams.

Built-in Mandatory Encryption

All QUIC connections are encrypted by default:

  • There is no unencrypted mode.
  • Security and privacy are guaranteed at the transport layer.
  • This simplifies deployment and avoids misconfiguration risks.

MoQ Architecture Overview

Media over QUIC uses a relay-based architecture to balance scalability and latency. Instead of forcing direct peer-to-peer connections, MoQ introduces relays that form a distributed media delivery network.

The main roles in a MoQ system are:

  • Publisher: Produces and publishes media content.
  • Subscriber: Consumes media content.
  • Relay: Routes and forwards media between publishers and subscribers.

Publishers and subscribers do not connect directly to each other. Instead, each connects to a local relay, which participates in a larger relay network.

Message Flow Summary

The following simplified flow illustrates the control and data paths:

Publisher  -- ANNOUNCE -->  Relay A  -- control plane -->  (register namespace)

Subscriber -- SUBSCRIBE -- request namespace --> Relay A -- Objects --> Subscriber

This architecture allows Media over QUIC to deliver real-time media with low latency, high scalability, and strong resilience to network changes.